#include "Header.h"
#include "CStateManagement.h"
#include "CStatePoster.h"
#include "CGame.h"

CStatePoster::CStatePoster(): m_iCount(0), CState()
{}

void CStatePoster::Init()
{
	Log("State Poster : Init");
	m_iCount = 10;
}

void CStatePoster::Update()
{
	if (m_iCount <= 1)
	{
		CGame::GetInstance()->Exit();
	}
	m_iCount--;
}

void CStatePoster::Render()
{
	Log("State Poster : %d", m_iCount);
}

void CStatePoster::Exit()
{
	Log("State Poster : Exit");
}